﻿<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<PresentationLayerMVC.Models.LogOnModel>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <script src="<%= Url.Content("~/Scripts/MicrosoftAjax.js") %>" type="text/javascript"></script>
    <script src="<%= Url.Content("~/Scripts/MicrosoftMvcAjax.js") %>" type="text/javascript"></script>
    <script src="<%= Url.Content("~/Scripts/MicrosoftMvcValidation.js") %>" type="text/javascript"></script>
    <% Html.EnableClientValidation(); %>

    <table style="width:100%;" cellpadding="0" cellspacing="0">
        <tr>
            <td align="center">
                <table style="width:100%;">
                    <tr>
                        <td colspan="2" align="center">
                            <asp:Image ID="Image1" runat="server" ImageAlign="Middle" 
                                ImageUrl="~/Content/Images/mvc_login.jpg" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center">
                <%: Html.ValidationSummary("Login was unsuccessful. Please correct the errors and try again.") %>
        
                <% using (Html.BeginForm()) { %>
                    <div style="width:30%;">
                        <fieldset>
                            <legend>Account Information</legend>
                            <div class="editor-label">&nbsp;</div>
                            <div class="editor-label">
                                <%: Html.LabelFor(m => m.UserName) %>:&nbsp;
                                <%: Html.TextBoxFor(m => m.UserName, new {size=17, maxlength=18}) %>
                                <%: Html.ValidationMessageFor(m => m.UserName) %>
                            </div>
                            <div class="editor-label">&nbsp;</div>
                            <div class="editor-label">
                                <%: Html.LabelFor(m => m.Password) %>:&nbsp;
                                <%: Html.PasswordFor(m => m.Password, new {size=18, maxlength=18})%>
                                <%: Html.ValidationMessageFor(m => m.Password) %>
                            </div>
                            <div class="editor-label">&nbsp;</div>
                            <div class="editor-label">
                                <%: Html.CheckBoxFor(m => m.RememberMe) %>
                                <%: Html.LabelFor(m => m.RememberMe) %>
                            </div>                
                            <p>
                                <input type="submit" value="Log On" />
                            </p>
                        </fieldset>
                    </div>
                <% } %>
            </td>
        </tr>
    </table>
</body>
</html>
